package com.leantech.android.browser.browser.web

import android.util.Log
import android.webkit.JavascriptInterface

class JsWebInterface(private val webView: RocketWebView) {

    @JavascriptInterface
    fun getAnchorPosition(left: Float, top: Float, right: Float, bottom: Float) {
        Log.d("JsWebInterface", "rect: $left, $top, $right, $bottom")
        webView.webViewCallback?.updateSelectionRect(left, top, right, bottom)
    }

}